package com.snow.platform.login.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("funcAuth")
public class FuncAuthController {

    /**
     * 获取当前用户的当前功能的子功能
     * @param funcCode
     * @return
     * @author  zhangkai
     */
    @RequestMapping("/subfuncList/{funcCode:[A-Z][A-Z0-9]+}")
    public List<String> getSubFuncList(@PathVariable("funcCode") String funcCode) {
        List<String> list = new ArrayList<>();
        list.add("add");
        list.add("del");
        return list;
    }

}
